package com.myh.cc.base

/**
 * 类描述    ：
 * 创建人    ：  mayahao.
 * 创建时间   ：  2018/1/3.
 * 修改人    ：
 * 修改时间   ：
 * 修改备注   ：
 */
data class CityInfo(var status: String,
                    var msg: String,
                    var result: Result) {
    data class Result(var city: String,
                      var cityid: String,
                      var citycode: String,
                      var date: String,
                      var week: String,
                      var weather: String,
                      var temp: String,
                      var temphigh: String,
                      var templow: String,
                      var img: String,
                      var humidity: String,
                      var pressure: String,
                      var windspeed: String,
                      var winddirect: String,
                      var windpower: String,
                      var updatetime: String,
                      var aqi: Aqi,
                      var index: List<Index>,
                      var daily: List<Daily>,
                      var hourly: List<Hourly>) {
        data class Aqi(var so2: String,
                       var so224: String,
                       var no2: String,
                       var no224: String,
                       var co: String,
                       var co24: String,
                       var o3: String,
                       var o38: String,
                       var o324: String,
                       var pm10: String,
                       var pm1024: String,
                       var pm2_5: String,
                       var pm2_524: String,
                       var iso2: String,
                       var ino2: String,
                       var ico: String,
                       var io3: String,
                       var io38: String,
                       var ipm10: String,
                       var ipm2_5: String,
                       var aqi: String,
                       var primarypollutant: String,
                       var quality: String,
                       var timepoint: String,
                       var aqiinfo: Aqiinfo) {
            data class Aqiinfo(var level: String,
                               var color: String,
                               var affect: String,
                               var measure: String)
        }

        data class Index(var iname: String,
                         var ivalue: String,
                         var detail: String)

        data class Daily(var date: String,
                         var week: String,
                         var sunrise: String,
                         var sunset: String,
                         var night: Night,
                         var day: Day) {
            data class Night(var weather: String,
                             var templow: String,
                             var img: String,
                             var winddirect: String,
                             var windpower: String)

            data class Day(var weather: String,
                           var temphigh: String,
                           var img: String,
                           var winddirect: String,
                           var windpower: String)
        }

        data class Hourly(var time: String,
                          var weather: String,
                          var temp: String,
                          var img: String)
    }
}